// 身份管理
import request from '@/router/axios'

//展示表格
export function timePlan(query) {
    return request({
        url: '/campus/timeplan/page',
        method: 'get',
        params: query
    })
}

//添加
export function AddtimePlan(obj) {
    return request({
        url: '/campus/timeplan',
        method: 'post',
        data: obj
    })
}

//修改
export function EdittimePlan(obj) {
    return request({
        url: '/campus/timeplan',
        method: 'put',
        data: obj
    })
}

//删除
export function DeltimePlan(id) {
    return request({
        url: '/campus/timeplan/' + id,
        method: 'delete'
    })
}

// 编辑前分页
export function beforeEditObj(id) {
    return request({
        url: '/campus/timeplan/' + id,
        method: 'get',
        params: id
    })
}

//  获取绑定人数
export function getPlanCount(id) {
    return request({
        url: '/campus/timeplan/getPlanCount/' + id,
        method: 'get',
        params: id
    })
}

// 获取子时间段数
export function timeEdit(query) {
    return request({
        url: '/campus/timeframeplan/all',
        method: 'get',
        params: query
    })
}



